using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;

public class Lesson6 : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        AsyncOperationHandle<IList<Object>> handle= Addressables.LoadAssetsAsync<Object>("CCName", (Obj) =>
        {
            Debug.Log("======" + Obj.name);
        });
        handle.Completed += (obj) =>
        {
            foreach (var item in obj.Result)
            {
                Debug.Log("=====handle.Completed====="+item.name);
            }
        };

    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
